/* 
 * Copyright (C) 2003 Heiko Noordhof <heiko.noordhof@xs4all.nl>
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * A copy of the GNU General Public License (GPL) is found in the
 * COPYING file that is distributed with this program.
 */


#ifndef SERCTRL_H
#define SERCTRL_H

typedef struct {
     enum { off=0, on } level; 
     int nr;
} switx;

void  openserial(char *devicename);
int   closeserial(void);
int   setDTR(unsigned short level);
int   setRTS(unsigned short level);
switx waitswitch(void);

#endif
